<?php


class Site {


	var $_explicitType = "vfc.model.valueObjects.Site";
	
	var $id;
	var $name;
	var $area;
	var $streetNumber;
	var $streetName;
	var $crossStreet;
	var $contact1;
	var $contact2;
	var $fax;
	var $notes;
	var $activityFax;
	
	
	function setRowData($row) {
		$this->id = $row['SiteID'];
		$this->name = $row['SiteName'];
		$this->streetNumber = $row['StreetNum'];
		$this->streetName = $row['StreetName'];
		$this->crossStreet = $row['CrossStreet'];
		if ($row['ContactName1']) {
			$this->contact1 = new Contact();
			$this->contact1->name = $row['ContactName1'];
			$this->contact1->phone = $row['ContactPhone1'];
		}
		if ($row['ContactName2']) {
			$this->contact1 = new Contact();
			$this->contact1->name = $row['ContactName2'];
			$this->contact1->phone = $row['ContactPhone2'];
		}
		$this->fax = $row['Fax'];
		$this->notes = $row['Notes'];
		$this->activityFax = $row['activityFax'];
	}
}

?>